-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: bug with graphql nested queries #3089
fix: bug with graphql nested queries #3089
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3089 +/- ##
=======================================
Coverage 86.87% 86.88%
=======================================
Files 276 276
Lines 26873 26923 +50
=======================================
+ Hits 23347 23391 +44
- Misses 3526 3532 +6 ☔ View full report in Codecov by Sentry. |
) -> RelatedFields { | ||
type_names: VecDeque<String>, | ||
visited: &mut HashSet<VecDeque<String>>, | ||
) -> Option<RelatedFields> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
) -> Option<RelatedFields> { | |
) -> Valid<RelatedFields, String> { |
) | ||
.map_err(|e| ValidationError::new(e.to_string())), | ||
) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation needs to be changed. The related field information can't be inferred while creating a blueprint. It should be implemented as a part of the JIT transformation step. The JIT Transformations should identify exactly what the RequestTemplate should look like for each query and then while evaluating we should simply use that operation and execute the GraphQL request.
Moving to draft to reduce noise and improve CI efficiency. Once you are ready just mark it as "ready to review". Feel free to give a shoutout on the #contributors channel on Discord if you want immediate attention. |
Action required: PR inactive for 5 days. |
PR closed after 10 days of inactivity. |
Summary:
There is a bug when sending a nested query to a graphql server. The bug is described with an example in the issue created.
Issue Reference(s):
Fixes #3088
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>